package com.java1412.controller.api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面跳转   localhost:80/login.html--->templates/login.html
 *
 * @author java1412
 * @since 2023-06-20 16:50:47
 */
@Controller
public class PageController {

    // 跳转到对应页面
    @RequestMapping("/{name}.html")
    public String page(@PathVariable("name") String name) {
        return name;
    }
}
